#ifndef __SWAPCHAIN_H__
#define __SWAPCHAIN_H__
/////////////////
//include
/////////////////
#include<Windows.h>
#include<D3D11.h>
#include<D3DX11.h>
/////////////////
//const
/////////////////

/////////////////
//class
/////////////////
class SwapChain
{
public:
SwapChain(IDXGISwapChain* swap_chain = NULL);
 ~SwapChain();
ID3D11Texture2D* GetBuffer(int index);
void Present(UINT sync_interval = 0,UINT flags = 0);
private:
	IDXGISwapChain* swap_chain;
};
#endif __SWAPCHAIN_H__
